<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Consultar Local</title>
</h:head>
<h:body>
	<ui:include src="../menu.xhtml" />
	<div id="corpo">
		<f:view>
			<h:form>
				<fieldset>
					<legend>Consultar Local</legend>
					<table>
						<tr>
							<td>Digite o Codigo do Local Para Pesquisa</td>
							<td><h:inputText size="10"
									value="#{inserirLocalBean.codigoLocal}"></h:inputText></td>

							<td><h:commandButton value="Pesquisar"
									action="#{inserirLocalBean.buscar}"></h:commandButton></td>

						</tr>
					</table>

					<table class="tabela">
						<th>Nome</th>
						<th>Logradouro</th>
						<th>Bairro</th>
						<th>Uf</th>
						<th>Cidade</th>
						<th>Cep</th>
						<th>Setores</th>
						
						<tr>
							<td>#{inserirLocalBean.local.descricao}</td>
							<td>#{inserirLocalBean.local.logradouro}</td>
							<td>#{inserirLocalBean.local.bairro}</td>
							<td>#{inserirLocalBean.local.uf}</td>
							<td>#{inserirLocalBean.local.cidade}</td>
							<td>#{inserirLocalBean.local.cep}</td>
							<td><h:outputText escape="false"
									value="#{inserirLocalBean.local.setorLocal}" /></td>


						</tr>

					</table>


				</fieldset>
			</h:form>


			<ui:include src="../rodape.xhtml" />

		</f:view>
	</div>
</h:body>
</html>